import { Button, Form, Input } from 'antd';
import store from "../../../store";
import {observer} from 'mobx-react'
const QueryTag = () => {
    const [form] = Form.useForm();
    const onFinish = (values) => {
        store.contentLabel.getLabel(values.label)
    };

    return (
        <Form form={form} name="queryTag" layout="inline" onFinish={onFinish}>
            <Form.Item
                name="label"
            >
                <Input />
            </Form.Item>
            <Form.Item shouldUpdate>
                    <Button
                        type="primary"
                        htmlType="submit"
                    >
                        搜索
                    </Button>
            </Form.Item>
        </Form>
    );
};

export default observer(QueryTag);